//
//  IncomeExpenseDetailViewController.h
//  Wallets Manager
//
//  Created by Tung Nguyen on 10/22/12.
//  Copyright (c) 2012 BKHN. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SVSegmentedControl.h"
#import "InExContentViewController.h"
#import "CustomAlertView.h"
#import "AddIncomeViewController.h"
#import "AddExpenseViewController.h"
#import "Global.h"
#import "BBAlertView.h"
#import "TapkuLibrary.h"
#import "CustomInExAlertView.h"
@interface IncomeExpenseDetailViewController : UIViewController<UIPageViewControllerDataSource,UIPageViewControllerDelegate,UIAlertViewDelegate,TKCalendarMonthViewDataSource,TKCalendarMonthViewDelegate,UIActionSheetDelegate>
{
    NSDate *today;
    NSDate *startDate;
    NSDate *endDate;
    NSDate *tempDate;
    CustomInExAlertView *alertView;
    BBAlertView *alert;
    
    /* currentMode = 0 if day mode
     currentMode = 1 if daily mode
     currentMode = 2 if categoryMode
     */
    int currentMode;
    BOOL isCategoryMode;
    BOOL isCalendarShowSecondTime;
    
    
}
@property (strong,nonatomic) UIPageViewController *pageViewController;
@property (weak, nonatomic) IBOutlet UILabel *dateHeaderLabel;
@property (strong,nonatomic) TKCalendarMonthView *monthViewCalendar;
@property (retain, nonatomic) UIActionSheet *pickerViewPopup;

- (void)segmentedControlChangedValue:(SVSegmentedControl*)segmentedControl;

- (IBAction)backButtonPressed:(id)sender;
- (IBAction)addButtonPressed:(id)sender;
- (void) createDatePickerView;
-(void)popUpRefreshFrame;

@end
